import {formatMessage} from './intl';
import {Routes} from 'Shared/utils/routeManager';
const routes = new Routes({
    query: {
        url: '/',
        title: formatMessage({
            id: 'routes.query',
            defaultMessage: '列表'
        })
    },
    detail: {
        url: '/:id/detail',
        title: formatMessage({
            id: 'routes.detail',
            defaultMessage: '详情'
        }),
        format: '/{0}/detail'
    },
    update: {
        url: '/:id/update',
        title: formatMessage({
            id: 'routes.update',
            defaultMessage: '编辑'
        }),
        format: '/{0}/update'
    },
    add: {
        url: '/add',
        title: formatMessage({
            id: 'routes.add',
            defaultMessage: '新增'
        }),
        format: '/add'
    },
    historyQuery: {
        url: '/historyQuery',
        title: formatMessage({
            id: 'routes.historyQuery',
            defaultMessage: '备件预箱单发票历史查询'
        })
    },
    historyDetail: {
        url: '/:id/historyDetail',
        title: formatMessage({
            id: 'routes.historyDetail',
            defaultMessage: '备件预箱单发票历史详情'
        }),
        format: '/{0}/historyDetail'
    },

});
export default routes;
